package com.liy.framework.starter;

import javax.annotation.PostConstruct;
import javax.sql.DataSource;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

@Configuration
@EnableConfigurationProperties({AppProperties.class})
@Order(-2147483648)
public class SystemInitializeAutoConfiguration implements CommandLineRunner, BeanPostProcessor {
    @Autowired
    private AppProperties appProperties;
    @Autowired
    private DataSource dataSource;
    @Autowired
    private ApplicationContext applicationContext;

    public SystemInitializeAutoConfiguration() {
    }

    @PostConstruct
    public void init() {
    }

    public Object postProcessAfterInitialization(Object arg0, String arg1) throws BeansException {
        return null;
    }

    public Object postProcessBeforeInitialization(Object arg0, String arg1) throws BeansException {
        return null;
    }

    public void run(String... arg0) throws Exception {
    }
}
